package personal.jinhui.paprika.service.aidl;

import personal.jinhui.paprika.service.aidl.IChat;
import personal.jinhui.paprika.service.Message;

/**
 * Aidl interface for ChatManager listener.
 * This listener will execute on events like creation of chat session.
 */
interface IChatListener {

    	/**
    	 * Call when a new chat session is created.
    	 * @param chat		the created chat session
    	 * @param locally	true if the session is create by a chat manager.
    	 */
    	void onChatCreated(in IChat iChat, boolean locally);
    	
    	void onProcessMessage(in IChat iChat, in Message message);

}
